
//加载layui所有相关包
layui.config({
    base : "../js/"
}).use(['jquery','config','frame','http','bodyTab'],function(){
    var $ = layui.jquery;
    var $tab = layui.bodyTab();
    var $http = layui.http();
    var $frame = layui.frame()
    var $config = layui.config();

    // 添加新窗口
    $(".layui-nav .layui-nav-item a").on("click",function(){
        $tab.tabAdd($(this));
        $(this).parent("li").siblings().removeClass("layui-nav-itemed");
    });

    $("#logout").on("click",function () {
        var data =$http.request("acp/loginOut.json",{});
        window.parent.location.href = $config.config.baseUrl;
    });
});
